#ifndef DRV_SPI_H
#define DRV_SPI_H
#include "hc32_ddl.h"
typedef struct hc32_i2c_obj
{
	M4_I2C_TypeDef *pstcI2Cx;
	uint8_t sck_pin;
    uint8_t sck_pin_func;
	uint8_t cs_pin;
    uint8_t cs_pin_func;
    uint8_t mosi_pin;
    uint8_t mosi_pin_func;
    uint8_t miso_pin;
    uint8_t miso_pin_func;
	uint32_t baudrate;
//	uint32_t timerout;
}hc32_spi_obj_t;



#ifdef __cplusplus
extern "C" {
#endif




#ifdef __cplusplus
}
#endif

#endif
